package com.eastfair.venuebooking.api;

import com.eastfair.core.base.R;
import com.eastfair.venueservice.dto.ExhibitionServiceProviderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 展会服务商关系 feign.
 *
 * @author dqq
 * @date 2022 /12/14
 */
@FeignClient(value = "venue-services-manage/exhibitionServiceProvider")
public interface ExhibitionServiceProviderFeign {

    /**
     * 保存展会服务商关系.
     *
     * @param param the exhibition service provider dto
     * @return the r
     */
    @PostMapping("/save")
    R<Boolean> saveExhibitionServiceProvider(@RequestBody ExhibitionServiceProviderDTO param);

    /**
     * 删除展会下的服务商关系.
     *
     * @param param the exhibition service provider dto
     * @return the r
     */
    @PostMapping("/remove/serviceProvider")
    R<Boolean> deleteByServiceProviderId(@RequestBody ExhibitionServiceProviderDTO param);
}